'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/test', app.jwt, controller.home.index);
  router.post('/user/login', controller.user.login);
  router.get('/user/info',  controller.user.getInfo)
  router.get('/user/userList', app.jwt, controller.user.getUserList)
};
